package com.example.hellospringbootstarterautoconfigure.controller;

import com.example.hellospringbootstarterautoconfigure.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: lfh
 * @date: 2024/3/29 22:30
 * @Version: 1.0
 * @description:
 */
@RestController
public class HelloController {


    @Autowired
    HelloService helloService;


    @GetMapping("/hello")
    public String hello(String name) {
        return helloService.sayHello(name);
    }

}
